<template>
  <div>
    <el-form :inline="true" class="fontSize">
      <el-form-item label="标题或内容:">
        <el-input v-model="searchPar" placeholder="请输入标题或内容"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button  type="primary" @click="onSubmit">查询</el-button>
        <el-button   type="info"
                     plain  @click="searchPar=''">重置</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "searchForm",
  data() {
    return {
      list:[],
      searchPar:this.$route.query.data
    }
  },
  watch:{
    searchPar(){
      console.log(999)
      console.log(this.searchPar)
      this.$emit('sub')
    }
  },
  created() {

    //this.getPer()
  },
  methods: {
    onSubmit() {
      console.log('submit!');
      this.$emit('sub')
    },
  }
}
</script>

<style scoped lang="less">
.fontSize{
  font-size: 16px;
}
/deep/.el-form-item__label {
   font-size: 16px;
}
</style>
